import request from "@/utils/request";

// 查询商品分类列表
export function listGoodsClassify(query) {
  return request({
    url: "/shop/goodsClassify/list",
    method: "get",
    params: query,
  });
}

// 查询商品分类详细
export function getGoodsClassify(id) {
  return request({
    url: "/shop/goodsClassify/info",
    method: "get",
    params: { id: id },
  });
}

// 新增商品分类
export function addGoodsClassify(data) {
  return request({
    url: "/shop/goodsClassify",
    method: "post",
    data: data,
  });
}

// 修改商品分类
export function updateGoodsClassify(data) {
  return request({
    url: "/shop/goodsClassify",
    method: "put",
    data: data,
  });
}

// 删除商品分类
export function delGoodsClassify(id) {
  return request({
    url: "/shop/goodsClassify/" + id,
    method: "delete",
  });
}

// 导出商品分类
export function exportGoodsClassify(query) {
  return request({
    url: "/shop/goodsClassify/export",
    method: "get",
    params: query,
  });
}




